package com.gscitysfy.cus.drain.modules.pipe.mapper;

import com.gscitysfy.cus.drain.modules.pipe.entity.CifrsPipeMnPipeline;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gscitysfy.cus.drain.modules.pipe.entity.DrainPipeNetworkPage;

import java.util.List;

/**
 * @author Administrator
 * @since 2022-11-15 15:38:27
 */
public interface CifrsPipeMnPipelineMapper extends BaseMapper<CifrsPipeMnPipeline> {

    /**
     * 根据guid获取管道信息
     * @param guids
     * @return
     */
    List<DrainPipeNetworkPage> findPip(List<String> guids);

    /**
     * 根据管道类型，计算管道长度
     * @param type
     * @return
     */
    double countByType(String type);

    /**
     * 根据guid，计算管道长度
     * @param guids
     * @return
     */
    double countByIds(List<String> guids);
}
